<script>
    /**
     * 直接提货
     * @param order_id
     */
    function confirmEntry(order_id) {
        layer.confirm('确定要用户入驻了吗?', {title: '提示'}, function () {
            $.ajax({
                url: ns.url("hotel://hotel/order/confirmEntry"),
                data: {order_id: order_id},
                dataType: 'JSON',
                type: 'POST',
                success: function (res) {
                    layer.msg(res.message);

                    if (res.code == 0) {
                        location.reload();
                    }
                }
            });
        }, function () {
            layer.close();
        });
    }
</script>